<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    var obj = {
      uname: 'zs',
      say: () => {
        alert(this.uname)//this指向window window中没有uname 所以弹出undefined
      }
    }
    obj.say();  //undefined 
  </script>
</body>

</html>